function success(data = false) {
  return {success: true, msg: 'success', data}
}

function fail(msg = 'error', data = false) {
  return {success: false, msg, data}
}

module.exports = {success, fail}
